package Elevator;

/**
 * Created by Connor Madden.
 * User: Connor Madden
 * Date: 7/10/11
 * Time: 11:53 AM
 */
public class ElevatorStateOpen implements ElevatorStateI {

    public boolean move(Elevator elevator, float destination) {
        return false;  //TODO
    }

    public boolean openDoor(Elevator elevator) {
        return false;
    }

    public boolean closeDoor(Elevator elevator) {
        elevator.setStateObject(new ElevatorStateClosing(elevator));
        return true;
    }

    public Elevator.State getState() {
        return Elevator.State.OPEN;
    }
}
